Using Implements in the class declaration
The next step is to add the Crystal Data Source interface to your class module.
- With the code window for the MyDataSource class module open, add the following code to the General Declarations section of the class.
Implements CRDataSourceLib.CRDataSource
- Open the drop-down list of objects in the upper left of the code window. You will see a new object has been added to the list: CRDataSource.
- Select CRDataSource from the list of objects. A new Property Get procedure is added to the class module for the FieldCount property of the CRDataSource object. Remember that in COM interfaces, properties are actually implemented as Get and Let procedures. For more information, refer to your Visual Basic documentation.
- Open the drop-down list in the upper right of the class module code window. Notice that several procedures appear corresponding to the properties and methods of the Crystal Data Source interface. In fact, the properties and methods you saw in the Object Browser are the same properties and methods listed here in the code window.